#ifndef __THREAD_POOL__
#define __THREAD_POOL__

#include "tidArr.h"
#include "taskQueue.h"
#include "myHeader.h"
#include "opFile.h"
#include "opDir.h"
#include "dealCommand.h"

typedef struct threadPool_s{
    tidArr_t tidArr;
    taskQueue_t taskQueue;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    int exitFlag;
}threadPool_t;
int threadPoolInit(threadPool_t *pthreadPool,int workerNum);
int makeWorker(threadPool_t *pthreadPool);
int tcpInit(char *ip,char *port);
int epollAdd(int epfd,int fd);
int epollDel(int epfd,int fd);
#endif
